package day1204_2;

public class TDemo22 {
    public static void main(String[] args) {
        Thread  t1=new Thread(){
            public void run() {
                for(int i=1;i<100000;i++)
                    System.out.println("做饭，做饭.....");
            }
        };

        Thread  t2=new Thread(){
            public void run() {
                try {
                    t1.join();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                for(int i=1;i<100000;i++)
                    System.out.println("吃饭，吃饭.....");
            }
        };

        t1.start();
        t2.start();
    }
}
